package com.example.controller;

import com.example.service.InformationAgentService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>消息代办</p>
 * 说明：先做一个demo，消息代办，后面新同事可以添加丰富功能，加入缓存机制
 *  SpotCheckPlanController
 * @author 13169
 * @version 1.6.0
 * @Date 2019/8/24
 *
 */
@RestController
@RequestMapping("api/informationAgent")
public class InformationAgentController {

    @Autowired
    public InformationAgentService informationAgentService;

    /**
     * 查询消息代办
     *
     * @param
     * @param
     * @return
     */
    @ApiOperation(value = "查询维保计划的所有数据", notes = "获取列表信息")
    @RequestMapping(value = "findList", method = RequestMethod.POST)
    private Map<String, Object> findList(@RequestBody Map map) {
        Map<String, Object> resultMap = informationAgentService.findList(map);
        return resultMap;
    }


}
